home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / screen32.lha / screen-3.2b / ansi.h < prev    next >
C/C++ Source or Header  |  1992-02-02  |  2KB  |  82 lines

  1. /* Copyright (c) 1991
  2.  *      Juergen Weigert (jnweiger@immd4.informatik.uni-erlangen.de)
  3.  *      Michael Schroeder (mlschroe@immd4.informatik.uni-erlangen.de)
  4.  * Copyright (c) 1987 Oliver Laumann
  5.  *
  6.  * This program is free software; you can redistribute it and/or modify
  7.  * it under the terms of the GNU General Public License as published by
  8.  * the Free Software Foundation; either version 1, or (at your option)
  9.  * any later version.
  10.  *
  11.  * This program is distributed in the hope that it will be useful,
  12.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.  * GNU General Public License for more details.
  15.  *
  16.  * You should have received a copy of the GNU General Public License
  17.  * along with this program (see the file COPYING); if not, write to the
  18.  * Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19.  *
  20.  * Noteworthy contributors to screen's design and implementation:
  21.  *    Wayne Davison (davison@borland.com)
  22.  *    Patrick Wolfe (pat@kai.com, kailand!pat)
  23.  *    Bart Schaefer (schaefer@cse.ogi.edu)
  24.  *    Nathan Glasser (nathan@brokaw.lcs.mit.edu)
  25.  *    Larry W. Virden (lwv27%cas.BITNET@CUNYVM.CUNY.Edu)
  26.  *    Howard Chu (hyc@hanauma.jpl.nasa.gov)
  27.  *    Tim MacKenzie (tym@dibbler.cs.monash.edu.au)
  28.  *    Markku Jarvinen (mta@{cc,cs,ee}.tut.fi)
  29.  *    Marc Boucher (marc@CAM.ORG)
  30.  *
  31.  ****************************************************************
  32.  * $Id: ansi.h,v 1.2 92/02/03 02:27:39 jnweiger Exp $ FAU
  33.  */
  34.  
  35. #define NATTR        6
  36.  
  37. #define ATTR_DI        0    /* Dim mode */
  38. #define ATTR_US        1    /* Underscore mode */
  39. #define ATTR_BD        2    /* Bold mode */
  40. #define ATTR_RV        3    /* Reverse mode */
  41. #define ATTR_SO        4    /* Standout mode */
  42. #define ATTR_BL        5    /* Blinking */
  43.  
  44. #define A_DI    (1<<ATTR_DI)
  45. #define A_US    (1<<ATTR_US)
  46. #define A_BD    (1<<ATTR_BD)
  47. #define A_RV    (1<<ATTR_RV)
  48. #define A_SO    (1<<ATTR_SO)
  49. #define A_BL    (1<<ATTR_BL)
  50. #define A_MAX    (1<<(NATTR-1))
  51.  
  52. /* Types of movement used by GotoPos() */
  53. enum move_t {
  54.     M_NONE,
  55.     M_UP,
  56.     M_CUP,
  57.     M_DO,
  58.     M_CDO,
  59.     M_LE,
  60.     M_CLE,
  61.     M_RI,
  62.     M_CRI,
  63.     M_RW,
  64.     M_CR    /* CR and rewrite */
  65. };
  66.  
  67. #define EXPENSIVE     1000
  68.  
  69. #define G0             0
  70. #define G1             1
  71. #define G2             2
  72. #define G3             3
  73.  
  74. #define ASCII         0
  75.  
  76. #ifdef TOPSTAT
  77. #define STATLINE     (0)
  78. #else
  79. #define STATLINE     (screenheight-1)
  80. #endif
  81.  
  82.